import numpy as np

from Box import Box


class BoxManager:
    def __init__(self, min_l=3, min_w=3, min_h=3, max_l=5, max_w=5, max_h=5):
        self.num = 0

        self.min_l = min_l
        self.min_w = min_w
        self.min_h = min_h
        self.max_l = max_l
        self.max_w = max_w
        self.max_h = max_h

    def make_box(self):
        self.num += 1
        return Box(ID=self.num,
                   l=np.random.randint(self.min_l, self.max_l),
                   w=np.random.randint(self.min_w, self.max_w),
                   h=np.random.randint(self.min_h, self.max_h))
